<@mup.script src="/mine/samplecode/css/samplecode.css?v=2023-04-24T10:54:57Z" model="all"/>
<@mup.script src="/mine/samplecode/js/dialog.js?v=2023-04-24T10:54:57Z" model="all"/>

<div id="dialogSample-tempo" style="height: 100%;padding: 12px 0px;">
	<form>
		<input type="hidden" id="id" name="id">
		<table style="width:100%;">
			<tr>
				<td class="formLayoutTit"><label><span style="padding: 3px;color: red;">*</span><@spring.message "mine.sampleCodeName"/></label></td>
				<td colspan="3">
					<input type="text" id="name" autofocus="autofocus" name="name" class="tempo-validatebox" ui-role="validatebox" style="width:300px;" ui-options="valids:[/^(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]+$/],validTip:'<@spring.message "mine.jiaoyetip"/>',maxLength:200,required:true,autofill:false"/>
				</td>
			</tr>
			<tr>
				<td class="formLayoutTit"><label><span style="padding: 3px;color: red;">*</span><@spring.message "mine.sampleCodeType"/></label></td>
				<td colspan="3">
					<select id="type" name="type" class="tempo-validatebox" style="width:50%">
						<option value="Python">Python</option>
						<option value="Scala">Scala</option>
						<option value="Java">Java</option>
						<option value="matlab">Matlab</option>
						<option value="R">R</option>
						<option value="Pyspark">Pyspark</option>
						<option value="pythonparallelization">Python分布式</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="formLayoutTit"><label><span style="padding: 3px;color: red;">*</span><@spring.message "mine.sample_code"/></label></td>
				<td colspan="3">
					<textarea id="sampleCode" name="sampleCode" class="tempo-validatebox"  style="width:100%;padding: 10px;resize:none;line-height: 1.5" ></textarea>
				</td>
			</tr>
			<tr>
				<td>
					<span id="tipText" style="color: red;display: none;position: absolute;bottom: 4px;left: 112px;">示例代码不能为空！</span>
				</td>
			</tr>
		</table>
	</form>
</div>